namespace Logic.Map.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class altertablethis : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.CustomerAndThingsName",
                c => new
                    {
                        F_Id = c.String(nullable: false, maxLength: 128),
                        F_CreatorUserId = c.String(maxLength: 50),
                        F_CreatorTime = c.DateTime(),
                        F_DeleteMark = c.Boolean(),
                        F_DeleteUserId = c.String(maxLength: 50),
                        F_DeleteTime = c.DateTime(),
                        F_LastModifyUserId = c.String(maxLength: 50),
                        F_LastModifyTime = c.DateTime(),
                        Type = c.Int(nullable: false),
                        Name = c.String(maxLength: 50),
                        State = c.Boolean(),
                        Remark = c.String(maxLength: 300),
                    })
                .PrimaryKey(t => t.F_Id);
            
            AddColumn("dbo.OperationGudaoCar", "Banci", c => c.String(maxLength: 50));
            AddColumn("dbo.PersonSalary", "DWeight", c => c.Decimal(precision: 18, scale: 2));
        }
        
        public override void Down()
        {
            DropColumn("dbo.PersonSalary", "DWeight");
            DropColumn("dbo.OperationGudaoCar", "Banci");
            DropTable("dbo.CustomerAndThingsName");
        }
    }
}
